import request from '@/utils/request'

export function addOrder(data) {
    return request({
        url: '/mealOrder',
        method: 'post',
        data
    })
}

export function getOrder(query) {
    return request({
        url: '/mealOrder/page',
        method: 'get',
        params: query
    })
}

export function deleteOrder(id) {
    const pathUrl = '/mealOrder/' + id
    return request({
        url: pathUrl,
        method: 'delete',
    })
}

export function getMealCount() {
    return request({
        url: '/mealOrder/setCountBySet',
        method: 'get',
    })
}

export function getOrderCount() {
    return request({
        url: '/mealOrder/setCountByDay',
        method: 'get',
    })
}